package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lyj
 * @Title: ResumeServiceFeginClient
 * @ProjectName lagou-parent
 * @Description: TODO
 * @date 2021/1/1 19:41
 */
//value是调用的服务名称，和服务提供者yml文件中的spring.application.name保持一致
@FeignClient(value = "lagou-service-resume",fallback = ResumeFallback.class,path = "/resume")
public interface ResumeServiceFeginClient {
    @GetMapping("/openstate/{userId}")
     Integer findDefaultResumeState(@PathVariable(value = "userId") Long userId) ;
    }
